package com.lj.dao;

import com.lj.po.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author lj
 * @Description: CommentRepository
 * @date 2020-10-04 22:20
 * @QQ 851477108
 */

public interface CommentRepository extends JpaRepository<Comment,Long>{


    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}
